package com.lingnan.eduservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lingnan.eduservice.entity.po.EduCourseDescriptionPO;
import com.lingnan.eduservice.mapper.EduCourseDescriptionMapper;
import com.lingnan.eduservice.service.EduCourseDescriptionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 课程简介 服务实现类
 * </p>
 *
 * @author zzd
 * @since 2021-08-17
 */
@Service
public class EduCourseDescriptionServiceImpl extends ServiceImpl<EduCourseDescriptionMapper, EduCourseDescriptionPO> implements EduCourseDescriptionService {
    /**
     * 根据课程ID删除所有详情信息
     * @param courseId
     */
    @Override
    public void deleteDescriptionByCourseId(String courseId) {
        // 执行删除
        baseMapper.deleteById(courseId);
    }
}
